#!/usr/bin/env python
#coding:utf8

import crcutil
import diff
import diff_crc_fix

names = ['csb', 'fonts', 'resource', 'shaders', 'sound', 'spine']
for n in names:
    hex = crcutil.hex_crc8(n)
    print ("crc8 => %s" % hex)

hex = crcutil.hex_crc8('csb')
print ("crc8 => %s" % hex)

hex = crcutil.hex_crc32('puremvc-csharp-standard-framework')
print ("crc32 => %s" % hex)

file = 'spine/E51027/action.atlas'
path = crcutil.make_crc_path(file)
print ("path => %s" % path)

src = 'D:\\git\\sszg_new\\client\\res'
dst = 'D:\\git\\sszg_new\\client_hash\\res'
diff.diff(src, dst, dst, False, 0, True)

#diff_crc_fix.fix_crc_files(dst)

src = 'D:\\git\\sszg_new\\client\\src'
dst = 'D:\\git\\sszg_new\\client_hash\\src'
diff.diff(src, dst, dst, False, 0, True)